using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._3DAnalystTools._3DIntersections
{
    /// <summary>
    /// <para>Fence Diagram</para>
    /// <para>Constructs a vertical cross-section of a collection of surfaces.</para>
    /// <para>构造曲面集合的垂直横截面。</para>
    /// </summary>    
    [DisplayName("Fence Diagram")]
    public class FenceDiagram : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public FenceDiagram()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_line_features">
        /// <para>Input Line Features</para>
        /// <para>The line features that will be used to construct the fence diagram.</para>
        /// <para>将用于构建围栏逻辑示意图的线要素。</para>
        /// </param>
        /// <param name="_in_surface">
        /// <para>Input Surface</para>
        /// <para>The surfaces that will be used to construct the fence diagram.</para>
        /// <para>将用于构建围栏图的曲面。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Multipatch Feature Class</para>
        /// <para>The output multipatch that is composed of vertical faces that depict the fence diagram.</para>
        /// <para>由描绘围栏图的垂直面组成的输出多面体。</para>
        /// </param>
        public FenceDiagram(object _in_line_features, List<object> _in_surface, object _out_feature_class)
        {
            this._in_line_features = _in_line_features;
            this._in_surface = _in_surface;
            this._out_feature_class = _out_feature_class;
        }
        public override string ToolboxName => "3D Analyst Tools";

        public override string ToolName => "Fence Diagram";

        public override string CallName => "3d.FenceDiagram";

        public override List<string> AcceptEnvironments => ["XYDomain", "ZDomain", "extent", "geographicTransformations", "outputCoordinateSystem", "workspace"];

        public override object[] ParameterInfo => [_in_line_features, _in_surface, _out_feature_class, _method.GetGPValue(), _floor_height, _ceiling_height, _sample_distance];

        /// <summary>
        /// <para>Input Line Features</para>
        /// <para>The line features that will be used to construct the fence diagram.</para>
        /// <para>将用于构建围栏逻辑示意图的线要素。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Line Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_line_features { get; set; }


        /// <summary>
        /// <para>Input Surface</para>
        /// <para>The surfaces that will be used to construct the fence diagram.</para>
        /// <para>将用于构建围栏图的曲面。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Surface")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _in_surface { get; set; }


        /// <summary>
        /// <para>Output Multipatch Feature Class</para>
        /// <para>The output multipatch that is composed of vertical faces that depict the fence diagram.</para>
        /// <para>由描绘围栏图的垂直面组成的输出多面体。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Multipatch Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Interpolation Method</para>
        /// <para><xdoc>
        ///   <para>The interpolation method that will be used to obtain z-values from TIN surfaces when constructing the fence diagram. This parameter does not apply to raster surfaces.</para>
        ///   <bulletList>
        ///     <bullet_item>Linear—Linear interpolation will be used. This is the default.</bullet_item><para/>
        ///     <bullet_item>Natural Neighbors—Natural neighbors interpolation will be used.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>在构建围栏图时，将用于从 TIN 曲面获取 z 值的插值方法。此参数不适用于栅格表面。</para>
        ///   <bulletList>
        ///     <bullet_item>线性—将使用线性插值。这是默认设置。</bullet_item><para/>
        ///     <bullet_item>自然邻居—将使用自然邻居插值。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Interpolation Method")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _method_value _method { get; set; } = _method_value._LINEAR;

        public enum _method_value
        {
            /// <summary>
            /// <para>Linear</para>
            /// <para>Linear—Linear interpolation will be used. This is the default.</para>
            /// <para>线性—将使用线性插值。这是默认设置。</para>
            /// </summary>
            [Description("Linear")]
            [GPEnumValue("LINEAR")]
            _LINEAR,

            /// <summary>
            /// <para>Natural Neighbors</para>
            /// <para>Natural Neighbors—Natural neighbors interpolation will be used.</para>
            /// <para>自然邻居—将使用自然邻居插值。</para>
            /// </summary>
            [Description("Natural Neighbors")]
            [GPEnumValue("NATURAL_NEIGHBORS")]
            _NATURAL_NEIGHBORS,

        }

        /// <summary>
        /// <para>Floor Height</para>
        /// <para>A constant height used to define the lowest height of the fence diagram.</para>
        /// <para>用于定义围栏图的最低高度的常量高度。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Floor Height")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public string? _floor_height { get; set; } = null;


        /// <summary>
        /// <para>Ceiling Height</para>
        /// <para>A constant height used to define the highest height of the fence diagram.</para>
        /// <para>用于定义围栏图的最高高度的常量高度。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Ceiling Height")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public string? _ceiling_height { get; set; } = null;


        /// <summary>
        /// <para>Sample Distance</para>
        /// <para>The horizontal distance used for determining the positions where height measurements are interpolated from the underlying surfaces.</para>
        /// <para>用于确定高度测量值从底层曲面插值的位置的水平距离。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Sample Distance")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public string? _sample_distance { get; set; } = null;


        public FenceDiagram SetEnv(object XYDomain = null, object ZDomain = null, object extent = null, object geographicTransformations = null, object outputCoordinateSystem = null, object workspace = null)
        {
            base.SetEnv(XYDomain: XYDomain, ZDomain: ZDomain, extent: extent, geographicTransformations: geographicTransformations, outputCoordinateSystem: outputCoordinateSystem, workspace: workspace);
            return this;
        }

    }

}